<?php
/**
 * Created by PhpStorm.
 * User: fangwei
 * Date: 2019-06-23
 * Time: 21:13
 */

namespace App\Http\Repositories\Services;


use App\Http\Requests\Admin\PermissionInputDTO;

interface IPermission
{
    public function byId($id);

    public function store(PermissionInputDTO $inputDTO);

    public function update(PermissionInputDTO $inputDTO,$id);

    public function delete($id);

    public function state($id,$state);

    /**
     * 包裹层级返回菜单数据(前端layui需求格式)
     * @return mixed
     */
    public function getTree();

    public function getAll();
}